package kr.hkit.powerjava.homework;

import java.util.Scanner;

public class Programming5 {
	public static void main(String[] args) {
		double a;
		Scanner AA = new Scanner(System.in);
		System.out.print("x값을 실수로 입력하세요:");
		a = AA.nextDouble();

		if (a > 0)
			System.out.println("7x+2="+7 * a + 2);
		else
			System.out.println("x*x*x-9*x+2="+(a * a * a - 9 * a + 2));
	}
}
